<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login</title>
<style type="text/css">
.container {
	margin: 80px auto;
	width: 340px;
	background-color: lightcyan;
}
</style>
</head>
<body>
	<div class="container">
		<h1>Login to Web App</h1>
		<form:form action="login" method="POST" modelAttribute="user"
			id="formLogin">
			<table>
				<tr>
					<td colspan="2"><span style="color: red">${ error }</span>
					<td>
				</tr>
				<tr>
					<td><label><spring:message code="register.loginId" /></label></td>
					<td><form:input path="loginId" /></td>
				</tr>
				<tr>
					<td><label><spring:message code="register.password" /></label></td>
					<td><form:password path="password" /></td>
				</tr>
				<tr>
					<td></td>
					<td><input type="submit" value="Login" /></td>
					<td><a href="register">Sign up</a>
				</tr>
			</table>
		</form:form>
	</div>

</body>
</html>